package com.eric.dao;

import com.eric.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    List<User> getAllUserInfo();
    User getOneById(Integer id);
    User getAllByUserName(String loginName);
    //    添加用户
    void  SaveOne(User user);
    void modifyOne(@Param("password")String password,@Param("realname")String realname,@Param("id") Integer id);

}
